package com.example.autoemail;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.*;
import butterknife.ButterKnife;
import butterknife.InjectView;

public class MyActivity extends Activity {

    /**
     * Called when the activity is first created.
     */
    @InjectView(R.id.auto_email)
    EditText mAutoEmail;
    @InjectView(R.id.tv_content)
    TextView mTvContent;
    @InjectView(R.id.bt)
    Button mBt;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ButterKnife.inject(this);

        mBt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               mTvContent.setText(mAutoEmail.getText());
            }
        });
    }


}
